﻿using System;
using System.IO;
using UnityEngine;

namespace Hydrogen.MarkovChain.SolidMap2DScene
{
    public static class SolidMap2dResConstant
    {
        private const string _tileAddrRoot = "Tiles/Solid";


        /// <summary>
        /// 获取某个颜色的Tile的地址
        /// </summary>
        /// <param name="solidType"></param>
        /// <returns></returns>
        public static string GetTileAddr(SolidType solidType)
            => $"{_tileAddrRoot}/{Utils.Solid2Char(solidType)}.asset";


        #region Rule

        private const string _ruleXmlAddrRoot = "Rules/SolidMap2D";

        public static string GetRuleAddr(string ruleName)
            => $"{_ruleXmlAddrRoot}/{ruleName}.xml";
        #endregion

    }
}
